﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema 
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    id="GameRulesSchema"
    xmlns="uri:qintools:schemas:ruleset"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    targetNamespace="uri:qintools:schemas:ruleset:v1"
    elementFormDefault="qualified">
  <xs:element name="qin-rules">
    <xs:complexType>
      <xs:all>
        <xs:element name="aspects">
          <xs:complexType>
            <xs:all>
              <xs:element name="earth" type="xs:normalizedString" />
              <xs:element name="fire" type="xs:normalizedString" />
              <xs:element name="water" type="xs:normalizedString" />
              <xs:element name="wood" type="xs:normalizedString" />
              <xs:element name="metal" type="xs:normalizedString" />
            </xs:all>
          </xs:complexType>
        </xs:element>
        <xs:element name="skills">
          <xs:complexType>
            <xs:all minOccurs="1">
              <xs:element name="skill">
                <xs:complexType>
                  <xs:all minOccurs="1" maxOccurs="1">
                    <xs:element name="name" type="xs:normalizedString" />
                    <xs:element name="description">
                    </xs:element>
                    <xs:element name="target-aspect" type="xs:normalizedString" />
                  </xs:all>
                </xs:complexType>
              </xs:element>
            </xs:all>
          </xs:complexType>

        </xs:element>
        <xs:element name="items">

        </xs:element>
        <xs:element name="weapons">

        </xs:element>
        <xs:element name="armors">

        </xs:element>
        <xs:element name="techniques">

        </xs:element>
        <xs:element name="taos">

        </xs:element>
        <xs:element name="magic-ways">

        </xs:element>
        <xs:element name="spells">

        </xs:element>
      </xs:all>
      <xs:attribute name="language" type="xs:normalizedString" use="required" />
      <xs:attribute name="ruleset" type="xs:normalizedString" use="required" />
    </xs:complexType>
  </xs:element>
</xs:schema>
